<!-- 第1行, 图片新闻 -->
<div class="row clearfix">
	<div id="carousel" class="span12 carousel slide">
		<div class="carousel-inner">
			<?php foreach ($image_articles as $i=>$article): ?>
				<div class="item <?php if ($i === 0) { echo 'active'; }?>">
					<?php echo $this->Html->image(h($article['Article']['cover']), array('title' => h($article['Article']['title'])));?>
					<div class="carousel-caption">
						<h4><?php echo $this->Html->link(h($article['Article']['title']), array('controller' => 'articles', 'action' => 'view', $article['Article']['id']));?></h4>
						<p><?php echo mb_substr(strip_tags($article['Article']['content']), 0, 50);?></p>
					</div>
				</div>
			<?php endforeach; ?>
		</div>
		<a class="left carousel-control" href="#carousel" data-slide="prev">‹</a>
		<a class="right carousel-control" href="#carousel" data-slide="next">›</a>
	</div>
</div>

<!-- 第2行, 4个小模块 -->
<div class="row clearfix">
	<div id="research_articles" class="span3">
		<div class="widget">
			<div class="title">
				<h3><?php echo __('Research');?></h3>
			</div>
			<div class="content">
				<ul class="news">
					<?php echo $this->element('widget.post', array('posts' => $research_articles));?>
				</ul>
			</div>
		</div>
	</div>

	<div id="staff_articles" class="span3">
		<div class="widget">
			<div class="title">
				<h3><?php echo __('Staff');?></h3>
			</div>
			<div class="content">
				<ul class="news">
					<?php echo $this->element('widget.post', array('posts' => $staff_articles));?>
				</ul>
			</div>
		</div>
	</div>

	<div id="links" class="span3">
		<div class="widget">
			<div class="title">
				<h3><?php echo __('Links');?></h3>
			</div>
			<div class="content">
				<ul class="news">
				<?php if (!empty($links)): ?>
					<?php foreach ($links as $link): ?>
						<li><?php echo $this->Html->link(h($link['Link']['name']), $link['Link']['url'], array('target' => '_blank'));?></li>
					<?php endforeach; ?>
				<?php else: ?>
					<li><?php echo __('No data found');?></li>
				<?php endif; ?>
				</ul>
			</div>
		</div>
	</div>

	<div id="contact" class="span3">
		<div class="widget">
			<div class="title">
				<h3><?php echo __('Contact US');?></h3>
			</div>
			<div class="content">
				<?php echo $contact_us['MiscPost']['content'];?>
			</div>
		</div>
	</div>

</div>